using System;
using System.Threading.Tasks;
using DyEnd.Lib.Utils.Core.Result;
using DyEnd.Module.ZL24165_WCS.Application.homeService.ViewModels;
using DyEnd.Module.ZL24165_WCS.Domain.home.Models;

namespace DyEnd.Module.ZL24165_WCS.Application.homeService
{
    /// <summary>
    /// home服务
    /// </summary>
    public interface IhomeService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IResultModel> Query(homeQueryModel model);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IResultModel> Add(homeAddModel model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        Task<IResultModel> Delete(long id);

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResultModel> Edit(long id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IResultModel> Update(homeUpdateModel model);

    }
}
